package com.qhgrain.api.menurolepermission;

import java.util.HashSet;
import java.util.Set;

import javax.ws.rs.ApplicationPath;
import javax.ws.rs.core.Application;

@ApplicationPath("/menurolepermission/1.0.0")
public class RESTfulApplication extends Application {
	 
	@Override
	public Set<Class<?>> getClasses() {
		Set<Class<?>> resources = new HashSet<Class<?>>();
		try {
				resources.add(Class.forName("com.qhgrain.api.menurolepermission.provider.MenuServiceProvider"));
				resources.add(Class.forName("com.qhgrain.api.menurolepermission.provider.PermissionServiceProvider"));
				resources.add(Class.forName("com.qhgrain.api.menurolepermission.provider.RoleServiceProvider"));
		} catch (Exception e) {
			e.printStackTrace();
		}
		return resources;
	}
	
}
